package cn.tedu.home.husband.controller;

import cn.tedu.csmall.commons.restful.JsonResult;
import cn.tedu.home.wife.IHomeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
@Api(tags = "库存管理模块")
public class HomeController {

    @Autowired
    private IHomeService homeService;

    @PostMapping("/say")
    @ApiOperation("丈夫说")
    public JsonResult<String> husband() {
        return JsonResult.ok(homeService.husbandSay());
    }

}
